package com.ebeitech.auction.http.service;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

/**
 * Created by alice on 2017/10/26.
 */
public interface HttpCommonServiceRx {

	/**
	 * 登陆 返回本人信息
	 */
	@POST("rest/user/login")
	Call<ResponseBody> doLogin(@Body Map<String, String> params);

	/**
	 * 微信登陆绑定
	 * @param params
	 * @return
	 */
	@POST("rest/user/wechartLoginBind")
	Call<ResponseBody> doBindWeiXin(@Body Map<String, String> params);

	/**
	 * 小米华为推送绑定
	 * @param params
	 * @return
	 */
	@POST("rest/user/signDeviceToUser")
	Call<ResponseBody> doBindPush(@Body Map<String, String> params);

	/**
	 * 小米华为推送解绑
	 * @param params
	 * @return
	 */
	@POST("rest/user/unbindDeviceToUser")
	Call<ResponseBody> doUnBindPush(@Body Map<String, String> params);
}
